﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HouseKeepingServices;
using System.ServiceModel;

namespace HouseKeepingWCFHost
{
    public class ServicesHost
    {
        static void Main(string[] args)
        {
            using (ServiceHost host = new ServiceHost(typeof(Services)))
            {
                host.Open();
                Console.WriteLine("Server Started {0}, Press 'q' to kill...", DateTime.Now.ToLocalTime().ToString());
                while (Console.ReadLine() != "q") { }
                host.Close();
            }
        }
    }
}
